<?php 
ini_set(’magic_quotes_gpc’, ‘off’);
ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(-1);
?>

<!DOCTYPE html>
<html>
<head>
<title>Guest Book</title>
<meta charset = "utf-8">
<link rel="stylesheet" type = "text/css" href = "style.css">
</head>
<body>
<form name = "gb" method = "post" action = "verify.php">
<p>
<label for = "name">Имя<span id="warning"> * </span> : </label>
</p>
<p>
<input type = "text" name = "name" value = "">
</p>
<p>
<label>Сообщение<span id = "warning"> * </span> : </label>
</p>
<p>
<textarea name="mess" cols = "31">
</textarea>
</p>
<input type = "submit" name = "submit" value = "Отправить">
</form>
<?php
require_once ('librarie/lib.class.php');
require_once ('librarie/base.class.php');
include('config.php');
//Коннектимся к базе, если её нет, создаем базу и таблицы.
new connectDB($adres,$username,$password);

	new basecreate;
	new tablemess;
	new tablecomm;

//Вывод сообщений
$display = new outputmess;
echo ($display->out());

?>


</body>
</html>